/*    */ package com.service.impl;
/*    */ 
/*    */

import com.dao.IStuBookDao;
import com.domain.StudentBook;
import com.github.pagehelper.PageHelper;
import com.service.IStuBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*    */
/*    */ @Service
/*    */ public class StuBookService
/*    */   implements IStuBookService {
/*    */   @Autowired
/*    */   private IStuBookDao stuBookDao;
/*    */   
/*    */   public void save(StudentBook studentBook) throws Exception {
/* 18 */     this.stuBookDao.save(studentBook);
/*    */   }
/*    */ 
/*    */   
/*    */   public List<StudentBook> findBookByStuId(Integer studentId) throws Exception {
/* 23 */     return this.stuBookDao.findBookByStuId(studentId);
/*    */   }
/*    */ 
/*    */   
/*    */   public void delete(Integer id) {
/* 28 */     this.stuBookDao.delete(id);
/*    */   }
/*    */ 
/*    */ 
/*    */   
/*    */   public void update(StudentBook studentBook) throws Exception {
/* 34 */     this.stuBookDao.update(studentBook);
/*    */   }
/*    */ 
/*    */   
/*    */   public List<StudentBook> findHistoryByStuId(Integer studentId) throws Exception {
/* 39 */     return this.stuBookDao.findHistoryByStuId(studentId);
/*    */   }
/*    */ 
/*    */   
/*    */   public void updateXuJie(StudentBook studentBook) throws Exception {
/* 44 */     this.stuBookDao.updateXuJie(studentBook);
/*    */   }
/*    */ 
/*    */   
/*    */   public StudentBook findById(Integer stuBookId) throws Exception {
/* 49 */     return this.stuBookDao.findById(stuBookId);
/*    */   }
/*    */ 
/*    */   
/*    */   public List<StudentBook> lateBook(Integer studentId) throws Exception {
/* 54 */     return this.stuBookDao.lateBook(studentId);
/*    */   }
/*    */ 
/*    */   
/*    */   public List<StudentBook> findAll(Integer page, Integer size) {
/* 59 */     PageHelper.startPage(page.intValue(), size.intValue());
/* 60 */     return this.stuBookDao.findAll();
/*    */   }
/*    */   
/*    */   public List<StudentBook> getAllLate(Integer page, Integer size) {
/* 64 */     PageHelper.startPage(page.intValue(), size.intValue());
/* 65 */     return this.stuBookDao.getAllLate();
/*    */   }
/*    */ 
/*    */   
/*    */   public void autoIncrement() {
/* 70 */     this.stuBookDao.autoIncrement();
/*    */   }
/*    */ 
/*    */   
/*    */   public int updateId(Integer id) {
/* 75 */     return this.stuBookDao.updateId(id);
/*    */   }
/*    */ }


/* Location:              G:\项目\图书管理系统\library_system-1.0-SNAPSHOT.war!\WEB-INF\classes\com\service\impl\StuBookService.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */